package com.sunwayworld.basemodule.basedata.codes.resource;

import com.sunwayworld.basemodule.basedata.codes.service.LimsCodeService;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.framework.support.base.resource.GenericResource;
import com.sunwayworld.framework.support.choosable.resource.GenericChoosableResource;
import com.sunwayworld.framework.support.selectable.resource.GenericSelectableResource;
import com.sunwayworld.framework.support.suspendable.resource.GenericSuspendableResource;
import com.sunwayworld.module.sys.code.bean.CoreCodeBean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@RequestMapping({"/secure/core/module/sys/lims-codes"})
public interface LimsCodeResource extends GenericResource<LimsCodeService, CoreCodeBean, Long>, GenericSuspendableResource<LimsCodeService, CoreCodeBean, Long>, GenericSelectableResource<LimsCodeService, CoreCodeBean, Long>, GenericChoosableResource<LimsCodeService, CoreCodeBean, Long> {

    @RequestMapping(method = RequestMethod.POST)
    Long insert(RestJsonWrapperBean jsonWrapper);

    @RequestMapping(value = "/add/category",method = RequestMethod.POST)
    String addCategory(RestJsonWrapperBean wrapper);

    @RequestMapping(value = "/delete/category",method = RequestMethod.DELETE)
    String deleteCategory(RestJsonWrapperBean wrapper);
}
